<?php
if(!isset($q)){
	$q='';
}else{
	$q="&q=$q";
}
$paginator->options(array('url'=>array('?'=>'limite='.$limite.''.$q)));
?>
<?php $javascript->link(array('index_only.js'), false); ?>
<h2>Listado de Dependencias</h2>
<?php
echo $getList->getList(array(
    'Dependencia',array(
        'form'=>array('action'=>'process','type'=>'post'),
        'table'=>array('class'=>'celda','border'=>'0'),
        'config'=>array(
            '[Dependencia][id]'=>array('type'=>'hidden','key'=>true ),
            '[id]'=>array('type'=>'checkbox','title'=>'','width'=>5),
            '[Dependencia][codigo]'=>array('type'=>'fields','href'=>'edit','title'=>'Codigo','width'=>50),
            '[Dependencia][descripcion]'=>array('type'=>'fields','title'=>'Descripcion'),            
            '[Editar]'=>array('type'=>'button','width'=>50,'href'=>array('action'=>'edit'),'title'=>'','class'=>'lnkbutton btnedit','order'=>false),
        ),
        'data'	=>$Dependencias,
        'adition'=>array('find'=>true,'paginator'=>true),
        'button'=>array('default'=>true)
    )
));
?>